From cc682a96d96f15b21ab09065b6abe4144fc378a6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 27 Apr 2023 13:41:16 +0200 Subject: [PATCH] notebook: Drop an unused variable --- gtk/gtknotebook.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index e546f541ac..f0c84d8ed1 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -4902,7 +4902,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook, else /* !show_arrows */ { GtkOrientation tab_expand_orientation; - int c = 0; *n = 0; if (notebook->tab_pos == GTK_POS_TOP || notebook->tab_pos == GTK_POS_BOTTOM) @@ -4927,8 +4926,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook, !gtk_widget_get_visible (page->child)) continue; - c++; - if (page->expand || (gtk_widget_compute_expand (page->tab_label, tab_expand_orientation))) (*n)++; -- 2.30.2